home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re(2) Auto Destruct Objects < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re(2): Auto Destruct Objects
  2. Sent:        6/27/96 11:32 AM
  3. Received:    6/27/96 11:41 AM
  4. From:        Scott Champ, ChampSM@sciex.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Auto-destruct object in ODF behaves exactly the same way as standard C++ 
  9. >objects with a compiler supporting exception. With compilers like 
  10. >Metrowerks or visual C++ which supports exception you can turn off the 
  11. >ODF emulation exception and use the compiler native exception. In this 
  12. >case ODF is better following the same rules otherwise you would not have 
  13. >the same behavior with emulation and native exception. Look at any C++ 
  14. >manual covering exceptions and you can apply that to ODF.
  15.  
  16. I guess I wasn't specific enough with my request. It is my impression that
  17. native C++ exceptions will auto distruct any stack based objects. The ODF
  18. documentation (pg. 307) indicates that heap based objects are also auto
  19. distructable. If this is true then do the heap based objects have the same
  20. scope as stack based objects with respect to exception handling (i.e. are they
  21. deleted when you exit the method)? Also is there any documentation on how to
  22. turn off the ODF emulated exceptions and use Metrowerk's?
  23.  
  24. Thanks
  25.  
  26. Scott Champ
  27.  
  28. Sciex
  29. 71 Four Valley Drive
  30. Concord, Ontario, Canada
  31. L4K-4V8
  32.